<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>安装</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="pthreads.requirements.html">« 需求</a></li>
      <li style="float: right;"><a href="pthreads.configuration.html">运行时配置 »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="pthreads.setup.html">安装/配置</a></li>
    <li>安装</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="pthreads.installation" class="section">
  <h2 class="title">安装</h2>
  <p class="para">
   pthreads 扩展由 PECL 主持，使用 <a href="https://github.com/krakjoe/pthreads" class="link external">&raquo;&nbsp;github</a> 管理源代码。
   使用标准的 PECL 包安装方式就可以完成安装：<a href="https://pecl.php.net/package/pthreads" class="link external">&raquo;&nbsp;https://pecl.php.net/package/pthreads</a>。
  </p>
  <p class="para">
   Windows 用户可以从 <a href="https://windows.php.net/downloads/pecl/releases/pthreads" class="link external">&raquo;&nbsp;PECL</a> 下载已经构建的二进制发行包。
  </p>
  <div class="caution"><strong class="caution">警告</strong>
   <p class="para">
    Windows 用户需要将 pthreadVC2.dll （包含在 Windows 版二进制发行包中）所在路径加入到 <var class="envar">PATH</var> 环境变量中。
   </p>
  </div>
 </div></div></div></body></html>